var mongoose = require('mongoose')
var db = require('../../server/db')

var modelName = 'applyManage'

var schema = new mongoose.Schema({
    handler: {
        id: mongoose.Schema.ObjectId,
        name: {type: String, default: ''}
    },
    content: {type: String, default: ''},
    status: {type: Number, default: 0},  // 状态 0 未处理， 1 已处理
    access: {type: Number, default: 0},  // 是否通过 1 为通过
}, {timestamps: true})

var model = db.model(modelName, schema)


module.exports = model